package com.szh.cloud.login.repository;

import com.szh.cloud.mybatis.entity.PtMenuEntity;
import com.szh.cloud.mybatis.entity.PtUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginDao {
    PtUserEntity queryUserInfoByName(@Param("userName") String username);

    List<PtMenuEntity> queryMenuList(@Param("userUuid")String userUuid, @Param("lang")String lang);

    /**
     * 查询权限列表
     * @param userUuid
     * @return
     */
    List<String> queryAuthList(@Param("userUuid") String userUuid);
}
